package com.hmkj.core.service.operate;

import com.hmkj.core.constant.PointNid;
import com.hmkj.core.po.operate.PointRule;
import com.hmkj.core.service.base.GenericService;

/**
 * 用户积分奖励规则表业务相关Service接口<br>
 *
 * @ClassName: PointRuleService
 * @author eproo
 * @date   2017-11-24 03:03:26
 */
public interface PointRuleService extends GenericService<Integer, PointRule> {
    /**
     * 积分奖励规则修改
     *
     * @param model
     * @throws Exception
     */
    void doEdit(PointRule model) throws Exception;

    /**
     * 发放积分
     *
     * @param userId
     * @param nid
     */
    void sendPoint(Integer userId, PointNid nid);

    /**
     * 发放积分处理
     *
     * @param userId 用户ID
     * @param nid    节点标识
     */
    void doSendPoint(Integer userId, PointNid nid);
}
